package icu.wdtt.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;

public class Files {
    @ApiModelProperty("主键")
    private int fid;
    @ApiModelProperty("文件名称")
    private String fname;
    @ApiModelProperty("文件的保存地址")
    private String furl;
    @ApiModelProperty("是否分享")
    private int fopen;
    @ApiModelProperty("文件的MIME类型")
    private String fdescribe;
    @ApiModelProperty("文件的类型")
    private String ftype;

    @ApiModelProperty("文件md5值,以此值为文件唯一标识")
    @JsonIgnore
    private String fmd5;

    public Files() {
    }

    public Files(int fid, String fname, String furl, int fopen, String fdescribe, String ftype, String fmd5) {
        this.fid = fid;
        this.fname = fname;
        this.furl = furl;
        this.fopen = fopen;
        this.fdescribe = fdescribe;
        this.ftype = ftype;
        this.fmd5 = fmd5;
    }



    public String getFmd5() {
        return fmd5;
    }

    public void setFmd5(String fmd5) {
        this.fmd5 = fmd5;
    }

    public String getFtype() {
        return ftype;
    }

    public void setFtype(String ftype) {
        this.ftype = ftype;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFurl() {
        return furl;
    }

    public void setFurl(String furl) {
        this.furl = furl;
    }

    public int getFopen() {
        return fopen;
    }

    public void setFopen(int fopen) {
        this.fopen = fopen;
    }

    public String getFdescribe() {
        return fdescribe;
    }

    public void setFdescribe(String fdescribe) {
        this.fdescribe = fdescribe;
    }

    @Override
    public String toString() {
        return "Files{" +
                "fid=" + fid +
                ", fname='" + fname + '\'' +
                ", furl='" + furl + '\'' +
                ", fopen=" + fopen +
                ", fdescribe='" + fdescribe + '\'' +
                ", ftype='" + ftype + '\'' +
                ", fmd5='" + fmd5 + '\'' +
                '}';
    }


}
